#ifndef PLUGINMAINWINDOW_H
#define PLUGINMAINWINDOW_H

#include <QMainWindow>
#include "PluginInterface.h"
#include "sandlight.h"

class PluginMainWindow : public QMainWindow, public PluginInterface {
    Q_OBJECT
    Q_INTERFACES(PluginInterface)  // 让 Qt 识别接口
    Q_PLUGIN_METADATA(IID PluginInterface_iid) // 插件元数据

public:
    explicit PluginMainWindow(QWidget *parent = nullptr);
    ~PluginMainWindow() override;
    QWidget* createWindow(QString filepath="",QWidget* parent = nullptr) override;
    void deleteSomething() override;
    QString ChineseName() override;
private:
    sandLight* sD=nullptr;
};

#endif // PLUGINMAINWINDOW_H
